﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Text;
using AvaloniaApplication1.ViewModels;

namespace AvaloniaApplication1.Models
{
    public class SignModel : ViewModelBase
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; } = "N/A";

        public string Icon { get; set; } = "/Assets/icon/IconTreeHead.png";

        public ObservableCollection<SignTreeModel> Children { get; set; } = new ObservableCollection<SignTreeModel>();
    }

    public class SignTreeModel:ViewModelBase
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; } = "名称";

        public SignIcon Icon { get; set; } = SignIcon.Defult;

        //public BindingList<>

        public ObservableCollection<SignTreeModel> Children { get; set; }=new ObservableCollection<SignTreeModel>();
    }

    /// <summary>
    /// 图标类型
    /// </summary>
    public enum SignIcon
    {
        /// <summary>
        /// 默认图标
        /// </summary>
        Defult=0x00,

        /// <summary>
        /// 签名方式二
        /// </summary>
        Rsa=0x01,

        Error=0x02,
    }
}
